package com.gwsdk.paysdk.jni;

import com.gwsdk.paysdk.utils.GWLog;

public class GWKeyTools {
	private static final String TAG = "GWKeyTools";
	private static GWKeyTools mt = null;
	static {
		try {
			System.loadLibrary("gwpaysdk");
		} catch (Exception e) {
			GWLog.e(TAG, "无法读取libgwpaysdk.so库文件");
			e.printStackTrace();
		}
	}
	private GWKeyTools() {
		natInit();
	}

	public static GWKeyTools getInstance() {
		if (null == mt) {
			mt = new GWKeyTools();
		}
		return mt;
	}
	/** 初始化,设置默认的对称加密的key gnauhcgnem */
	public native void natInit();

	/** 将加密之后的字符串进行解密 **/
	public native String secToNor(String secStr);

	public native String getHost();
}